#ifndef MESSAGESHOWAREA_H
#define MESSAGESHOWAREA_H

#include <QWidget>
#include <QScrollArea>
#include <QScrollBar>
#include <QVBoxLayout>
#include "messageitem.h"
#include "model/data.h"
#include <QTimer>

class MessageShowArea : public QScrollArea
{
    Q_OBJECT
public:
    MessageShowArea();

    void addMessage(bool isLeft, const model::Message& message);
    void addFrontMessage(bool isLeft, const model::Message& message);
    void clear();
    void srcollToEnd();

private:
    QWidget* container;
signals:
};

#endif // MESSAGESHOWAREA_H
